//选品广场-获取分类
export const getCategoryApi = (data) =>
  uni.http({
    url: 'blapp/v1/selectionSquare/getCategory',
    method: 'get',
    data,
    requestType: 'app',
  })
//选品广场-商品/服务/生活列表
export const getProductListApi = (data) =>
  uni.http({
    url: 'blapp/v1/selectionSquare/productList',
    method: 'get',
    data,
    requestType: 'app',
  })
//选品广场-热门
export const getHotProductApi = (data) =>
  uni.http({
    url: '/blapp/v1/selectionSquare/hotProduct',
    method: 'get',
    data,
    requestType: 'app',
  })
//选品广场-商品详情
export const getproductDetailApi = (data) =>
  uni.http({
    url: 'blapp/v1/selectionSquare/productDetail',
    method: 'get',
    data,
    requestType: 'app',
  })
//加入橱窗
export const addWindowApi = (data) =>
  uni.http({
    url: 'blapp/v1/selectionSquare/addShowcase',
    method: 'post',
    data,
    requestType: 'app',
  })
//分享商品-获取加密后的scence
export const getScenceApi = (data) =>
  uni.http({
    url: 'store/product/en_pu',
    method: 'get',
    data,
    requestType: 'shop',
  })
//分享商品-绑定分销关系
export const bindingRelaApi = (data) =>
  uni.http({
    url: 'store/product/dsb',
    method: 'get',
    data,
    requestType: 'shop',
  })
//钱包
//我的钱包列表
export const getWalletListApi = (data) =>
  uni.http({
    url: 'api/wallet/walletList',
    method: 'get',
    data,
    requestType: 'bl',
  })
// 获取分销订单列表
export const getpromotionMoreListApi = (data) =>
  uni.http({
    url: 'api/wallet/promotionOrderList',
    method: 'get',
    data,
    requestType: 'bl',
  })
//总资金列表
export const getTotalFundApi = (data) =>
  uni.http({
    url: 'api/wallet/walletDetail',
    method: 'get',
    data,
    requestType: 'bl',
  })
//我的收入列表页
export const getMyIncomeApi = (data) =>
  uni.http({
    url: 'api/wallet/myIncome',
    method: 'get',
    data,
    requestType: 'bl',
  })
//分销佣金详情
export const getCommissionDetailApi = (data) =>
  uni.http({
    url: 'api/wallet/distributionInfo',
    method: 'get',
    data,
    requestType: 'bl',
  })
//推广数据列表
export const getpromotionDataApi = (data) =>
  uni.http({
    url: 'api/wallet/promotionData',
    method: 'get',
    data,
    requestType: 'bl',
  })
//推广数据更多列表
export const getpromotionListApi = (data) =>
  uni.http({
    url: 'api/wallet/promotionMoreList',
    method: 'get',
    data,
    requestType: 'bl',
  })
//支付宝详情
export const getBoundInfoApi = (data) =>
  uni.http({
    url: 'api/wallet/aliDetail',
    method: 'get',
    data,
    requestType: 'bl',
  })
//解绑支付宝
export const unbindAliApi = (data) =>
  uni.http({
    url: 'api/wallet/unbindAli',
    method: 'get',
    data,
    requestType: 'bl',
  })
//解绑支付宝发送短信验证码
export const unbindAliSendApi = (data) =>
  uni.http({
    url: 'api/wallet/send_sms',
    method: 'get',
    data,
    requestType: 'bl',
  })
//绑定支付宝
export const bingAliApi = (data) =>
  uni.http({
    url: 'api/wallet/bingAli',
    method: 'get',
    data,
    requestType: 'bl',
  })
//提现配置接口
export const getWithdrawalConfigApi = (data) =>
  uni.http({
    url: 'api/wallet/withdrawalConfig',
    method: 'get',
    data,
    requestType: 'bl',
  })
//支付宝提现接口
export const aliWithdrawalApi = (data) =>
  uni.http({
    url: 'api/wallet/withdrawal',
    method: 'get',
    data,
    requestType: 'bl',
  })
//交易明细列表
export const getTradeListApi = (data) =>
  uni.http({
    url: 'api/wallet/tradeList',
    method: 'get',
    data,
    requestType: 'bl',
  })
//推广订单搜索历史操作接口
export const handleSearchWordsApi = (data) =>
  uni.http({
    url: 'api/wallet/handleSearchWords',
    method: 'get',
    data,
    requestType: 'bl',
  })
//交易明细详情
export const getTradeDetailApi = (data) =>
  uni.http({
    url: 'api/wallet/tradeDetail',
    method: 'get',
    data,
    requestType: 'bl',
  })
//推广订单删除全部历史接口
export const delAllWordsApi = (data) =>
  uni.http({
    url: 'api/wallet/delAll',
    method: 'get',
    data,
    requestType: 'bl',
  })
//交易明细类型列表
export const getTradeTypeListApi = (data) =>
  uni.http({
    url: 'api/wallet/tradeTypeList',
    method: 'get',
    data,
    requestType: 'bl',
  })
//推广订单关键词列表接口
export const searchListApi = (data) =>
  uni.http({
    url: 'api/wallet/searchList',
    method: 'get',
    data,
    requestType: 'bl',
  })
//选品广场搜索名称历史
export const getSearchWordHistoryApi = (data) =>
  uni.http({
    url: 'blapp/v1/selectionSquare/searchWordHistory',
    method: 'get',
    data,
    requestType: 'app',
  })
//选品广场删除搜索名称历史
export const delSearchWordHistoryApi = (data) =>
  uni.http({
    url: 'blapp/v1/selectionSquare/searchWordHistoryDel',
    method: 'post',
    data,
    requestType: 'app',
  })
//获取模块分销状态
export const getExtensionStatusApi = (data) =>
  uni.http({
    url: 'blapp/v1/selectionSquare/getExtensionStatus',
    method: 'post',
    data,
    requestType: 'app',
  })
//保证金详情
export const getBzjDetailApi = (data) =>
  uni.http({
    url: 'api/wallet/bzjDetail',
    method: 'get',
    data,
    requestType: 'bl',
  })

//获取咪婴币配置
export const getMycoinConfigApi = (data) =>
  uni.http({
    url: 'api/MyCoin/get_mycoin_config',
    method: 'get',
    data,
    requestType: 'bl',
  })
//咪婴币充值
export const mycoinOrderApi = (data) =>
  uni.http({
    url: 'api/MyCoin/create_mycoin_order',
    method: 'get',
    data,
    requestType: 'bl',
  })

// ios内购校验

export const ios_check = (data) =>
  uni.http({
    url: 'api/MyCoin/check_ios_verify',
    method: 'get',
    data,
    requestType: 'bl',
  })

export const miyinbiListApi = (data) =>
  uni.http({
    url: 'api/MyCoin/mycoin_lst',
    method: 'get',
    data,
    requestType: 'bl',
  })

//我的店铺列表接口
export const getMyMerchantApi = (data) =>
  uni.http({
    url: 'api/wallet/myMerchant',
    method: 'get',
    data,
    requestType: 'bl',
  })
